! function(r) {
	var n = function(r, n) {
			return r << n | r >>> 32 - n
		},
		t = function(r, n) {
			var t, o, e, u, f;
			return e = 2147483648 & r, u = 2147483648 & n, t = 1073741824 & r, o = 1073741824 & n, f = (1073741823 & r) + (1073741823 & n), t & o ? 2147483648 ^ f ^ e ^ u : t | o ? 1073741824 & f ? 3221225472 ^ f ^ e ^ u : 1073741824 ^ f ^ e ^ u : f ^ e ^ u
		},
		o = function(r, n, t) {
			return r & n | ~r & t
		},
		e = function(r, n, t) {
			return r & t | n & ~t
		},
		u = function(r, n, t) {
			return r ^ n ^ t
		},
		f = function(r, n, t) {
			return n ^ (r | ~t)
		},
		i = function(r, e, u, f, i, a, c) {
			return r = t(r, t(t(o(e, u, f), i), c)), t(n(r, a), e)
		},
		a = function(r, o, u, f, i, a, c) {
			return r = t(r, t(t(e(o, u, f), i), c)), t(n(r, a), o)
		},
		c = function(r, o, e, f, i, a, c) {
			return r = t(r, t(t(u(o, e, f), i), c)), t(n(r, a), o)
		},
		C = function(r, o, e, u, i, a, c) {
			return r = t(r, t(t(f(o, e, u), i), c)), t(n(r, a), o)
		},
		g = function(r) {
			for (var n, t = r.length, o = t + 8, e = (o - o % 64) / 64, u = 16 * (e + 1), f = Array(u - 1), i = 0, a = 0; t > a;) n = (a - a % 4) / 4, i = 8 * (a % 4), f[n] = f[n] | r.charCodeAt(a) << i, a++;
			return n = (a - a % 4) / 4, i = 8 * (a % 4), f[n] = f[n] | 128 << i, f[u - 2] = t << 3, f[u - 1] = t >>> 29, f
		},
		h = function(r) {
			var n, t, o = "",
				e = "";
			for (t = 0; 3 >= t; t++) n = 255 & r >>> 8 * t, e = "0" + n.toString(16), o += e.substr(e.length - 2, 2);
			return o
		},
		d = function(r) {
			r = r.replace(/\x0d\x0a/g, "\n");
			for (var n = "", t = 0; t < r.length; t++) {
				var o = r.charCodeAt(t);
				128 > o ? n += String.fromCharCode(o) : o > 127 && 2048 > o ? (n += String.fromCharCode(192 | o >> 6), n += String.fromCharCode(128 | 63 & o)) : (n += String.fromCharCode(224 | o >> 12), n += String.fromCharCode(128 | 63 & o >> 6), n += String.fromCharCode(128 | 63 & o))
			}
			return n
		};
	r.extend({
		md5: function(r) {
			var n, o, e, u, f, v, m, S, l, A = Array(),
				s = 7,
				x = 12,
				y = 17,
				b = 22,
				j = 5,
				p = 9,
				w = 14,
				L = 20,
				Q = 4,
				k = 11,
				q = 16,
				z = 23,
				B = 6,
				D = 10,
				E = 15,
				F = 21;
			for (r = d(r), A = g(r), v = 1732584193, m = 4023233417, S = 2562383102, l = 271733878, n = 0; n < A.length; n += 16) o = v, e = m, u = S, f = l, v = i(v, m, S, l, A[n + 0], s, 3614090360), l = i(l, v, m, S, A[n + 1], x, 3905402710), S = i(S, l, v, m, A[n + 2], y, 606105819), m = i(m, S, l, v, A[n + 3], b, 3250441966), v = i(v, m, S, l, A[n + 4], s, 4118548399), l = i(l, v, m, S, A[n + 5], x, 1200080426), S = i(S, l, v, m, A[n + 6], y, 2821735955), m = i(m, S, l, v, A[n + 7], b, 4249261313), v = i(v, m, S, l, A[n + 8], s, 1770035416), l = i(l, v, m, S, A[n + 9], x, 2336552879), S = i(S, l, v, m, A[n + 10], y, 4294925233), m = i(m, S, l, v, A[n + 11], b, 2304563134), v = i(v, m, S, l, A[n + 12], s, 1804603682), l = i(l, v, m, S, A[n + 13], x, 4254626195), S = i(S, l, v, m, A[n + 14], y, 2792965006), m = i(m, S, l, v, A[n + 15], b, 1236535329), v = a(v, m, S, l, A[n + 1], j, 4129170786), l = a(l, v, m, S, A[n + 6], p, 3225465664), S = a(S, l, v, m, A[n + 11], w, 643717713), m = a(m, S, l, v, A[n + 0], L, 3921069994), v = a(v, m, S, l, A[n + 5], j, 3593408605), l = a(l, v, m, S, A[n + 10], p, 38016083), S = a(S, l, v, m, A[n + 15], w, 3634488961), m = a(m, S, l, v, A[n + 4], L, 3889429448), v = a(v, m, S, l, A[n + 9], j, 568446438), l = a(l, v, m, S, A[n + 14], p, 3275163606), S = a(S, l, v, m, A[n + 3], w, 4107603335), m = a(m, S, l, v, A[n + 8], L, 1163531501), v = a(v, m, S, l, A[n + 13], j, 2850285829), l = a(l, v, m, S, A[n + 2], p, 4243563512), S = a(S, l, v, m, A[n + 7], w, 1735328473), m = a(m, S, l, v, A[n + 12], L, 2368359562), v = c(v, m, S, l, A[n + 5], Q, 4294588738), l = c(l, v, m, S, A[n + 8], k, 2272392833), S = c(S, l, v, m, A[n + 11], q, 1839030562), m = c(m, S, l, v, A[n + 14], z, 4259657740), v = c(v, m, S, l, A[n + 1], Q, 2763975236), l = c(l, v, m, S, A[n + 4], k, 1272893353), S = c(S, l, v, m, A[n + 7], q, 4139469664), m = c(m, S, l, v, A[n + 10], z, 3200236656), v = c(v, m, S, l, A[n + 13], Q, 681279174), l = c(l, v, m, S, A[n + 0], k, 3936430074), S = c(S, l, v, m, A[n + 3], q, 3572445317), m = c(m, S, l, v, A[n + 6], z, 76029189), v = c(v, m, S, l, A[n + 9], Q, 3654602809), l = c(l, v, m, S, A[n + 12], k, 3873151461), S = c(S, l, v, m, A[n + 15], q, 530742520), m = c(m, S, l, v, A[n + 2], z, 3299628645), v = C(v, m, S, l, A[n + 0], B, 4096336452), l = C(l, v, m, S, A[n + 7], D, 1126891415), S = C(S, l, v, m, A[n + 14], E, 2878612391), m = C(m, S, l, v, A[n + 5], F, 4237533241), v = C(v, m, S, l, A[n + 12], B, 1700485571), l = C(l, v, m, S, A[n + 3], D, 2399980690), S = C(S, l, v, m, A[n + 10], E, 4293915773), m = C(m, S, l, v, A[n + 1], F, 2240044497), v = C(v, m, S, l, A[n + 8], B, 1873313359), l = C(l, v, m, S, A[n + 15], D, 4264355552), S = C(S, l, v, m, A[n + 6], E, 2734768916), m = C(m, S, l, v, A[n + 13], F, 1309151649), v = C(v, m, S, l, A[n + 4], B, 4149444226), l = C(l, v, m, S, A[n + 11], D, 3174756917), S = C(S, l, v, m, A[n + 2], E, 718787259), m = C(m, S, l, v, A[n + 9], F, 3951481745), v = t(v, o), m = t(m, e), S = t(S, u), l = t(l, f);
			var G = h(v) + h(m) + h(S) + h(l);
			return G.toLowerCase()
		}
	})
}(jQuery);
! function(e) {
	var t = {},
		i = "lb_login";
	MOGU.user_handsome_login_init = function() {
		function o() {
			var e = {
				title: "登录蘑菇街",
				lightBoxId: i,
				contentHtml: a,
				scroll: !0
			};
			t = new MGLightBox(e), t.init()
		}
		var a = ['<div class="login_box clearfix">', '<p class="error_tip">请输入密码！</p>', '<div class="lg_form">', '<ul class="mod_box lo_mod_box" data-isshow="0">', '<li class="login_title">', '<a class="fr eb_mod" href="javascript:;">手机动态密码登录</a>', "<b>普通登录</b>", "</li>", '<li class="lg_item lg_name">', '<b class="lg_icon"></b>', '<input type="text" maxlength="32" class="text r3" name="uname" def-v="手机/邮箱/昵称" value="手机/邮箱/昵称" style="border-color: rgb(207, 207, 207); color:#ccc;">', "</li>", '<li class="lg_item u_passwd">', '<b class="lg_icon"></b>', '<input type="password" name="pass" class="text">', "</li>", "</ul>", '<ul class="mod_box eb_mod_box" data-isshow="0">', '<li class="login_title">', '<a class="fr lo_mod" href="javascript:;">普通登录</a>', "<b>手机动态密码登录</b>", "</li>", '<li class="lg_item lg_name">', '<b class="lg_icon"></b>', '<input type="text" maxlength="32" class="text r3" name="uname" def-v="手机" value="手机" style="border-color: rgb(207, 207, 207); color:#ccc;">', "</li>", '<li class="lg_item lg_code">', '<b class="lg_icon"></b>', '<input type="text" maxlength="32" class="text r3" name="telcode" def-v="动态密码" value="动态密码" style="border-color: rgb(207, 207, 207); color:#ccc;">', "</li>", '<li class="lg_chk"></li>', '<li class="lg_item lg_getcode">', '<a href="javascript:;" class="get_tel_code" id="get_tel_code" send-method="nologin" tel-input-id="uname" ready-text="获取手机动态密码" wait-text="重新获取动态密码">获取手机动态密码</a>', "</li>", "</ul>", '<div class="lg_remember"><input type="checkbox" name="remember" class="checkbox" checked=""> 记住我（两周免登录）</div>', '<div class="lg_login">', '<input type="button" value="" class="sub">', '<input type="hidden" value="" id="imgcheckvalue">', '<a class="ml10" href="http://www.mogujie.com/usersecurity/findpwd" target="_blank">忘记密码？</a>', '<a href="http://www.mogujie.com/registermg/">新用户注册</a>', "</div>", "</div>", '<div class="login_other">', "<span>其他登录方式</span>", '<a href="http://www.mogujie.com/oauth/login/qq/mogujie" class="login_qq"></a>', '<a href="http://www.mogujie.com/oauth/login/sina/mogujie" class="login_wb"></a>', '<a href="http://www.mogujie.com/oauth/login/weixin/mogujie" class="login_wx"></a>', "</div>", "</div>"].join("");
		! function() {
			e(".light_box").remove(), o()
		}()
	}, MOGU.user_handsome_login = function(o, a) {
		function s(t) {
			t.on("blur", '.lg_name input[name="uname"]', function() {
				var i, o = e(this),
					a = MGTOOL.trim(o.val());
				return "" == a || a == o.attr("def-v") ? !1 : a == o.attr("data-lastname") ? !1 : (n.UI.hideError(t), i = t.find(".lg_form").hasClass("easy_buy") ? 2 : 1, void(1 == i && /^1\d{10,10}$/.test(a) ? n.UI.ajaxPost({
					uname: o.val()
				}, "/mlogin/canloginbycode", function(e) {
					1001 == e.status.code && 1 == e.result ? (o.val(o.attr("def-v")).css("color", "#ccc"), t.find(".eb_mod_box input[name=uname]").val(a).css("color", "#000"), n.UI.turnLoginMod(t, 2), t.find(".eb_mod_box input[name=uname]").trigger("blur")) : (n.CHECK.checkCodeIsShow(t, o, i), o.attr("data-lastname", o.val()))
				}) : (n.CHECK.checkCodeIsShow(t, o, i), o.attr("data-lastname", o.val()))))
			}).on("focus", ".lg_item input", function() {
				n.UI.hideError(t)
			}).on("click", ".imgcheck_image_div,#imgcheck_code_change", function() {
				n.UI.hideError(t)
			}).on("click", ".login_title a", function() {
				var i, o = e(this);
				return o.hasClass("tab_on") ? !1 : (n.UI.hideError(t), i = o.hasClass("lo_mod") ? 1 : 2, void n.UI.turnLoginMod(t, i))
			}).on("click", "#get_tel_code", function() {
				var i = e(this),
					o = 60,
					a = t.find(".eb_mod_box input[name='uname']").val();
				if (!e("#get_tel_code:visible").length || i.hasClass("downing")) return !1;
				if (!/^1\d{10,10}$/.test(a)) return n.UI.showError(t, "请输入正确的手机号码"), !1;
				if (e(".imgcheck_code_img_div:visible").length && !n.CHECK.isImgcodeCheck(t)) return !1;
				i.addClass("downing").html("正在发送……");
				var s = {
					uname: a,
					check: e("#imgcheckvalue").val()
				};
				n.UI.ajaxPost(s, "/mlogin/getcode", function(e) {
					if (1001 === e.status.code ? (i.addClass("downing").html("重新发送(60)"), n.UI.countDownStart(i, o)) : i.removeClass("downing").html("获取手机动态密码"), 2 == e.result) {
						t.find(".eb_mod_box").attr("data-isshow", "1");
						var a = '<div id="lg_chk" class="lg_chk"></div>',
							s = t.find(".lg_remember");
						n.CHECK.GetImgCheck(a, "#lg_chk", s, t)
					}
					e.status.msg && n.UI.showError(t, e.status.msg)
				})
			}).on("click", ".lg_login .sub", function(e) {
				e.preventDefault();
				var i;
				i = t.find(".lg_form").hasClass("easy_buy") ? 2 : 1, n.UI.submitNowForm(t, i)
			})
		}
		var n = this;
		n.UI = {
				ajaxPost: function(t, i, o) {
					e.ajax({
						url: i,
						type: "POST",
						dataType: "json",
						data: t,
						success: function(e) {
							o(e)
						}
					})
				},
				submitNowForm: function(i, o) {
					var s, l, c = this;
					if ("visible" == i.find(".error_tip").css("visibility")) return !1;
					var r = i.find(".lg_remember :checkbox").prop("checked");
					if (2 == o) {
						var d = i.find(".eb_mod_box"),
							m = d.find("input[name=uname]"),
							u = d.find("input[name='telcode']");
						if (MGTOOL.trim(m.val()) == m.attr("def-v")) return c.showError(i, "请输入" + m.attr("def-v")), !1;
						if (MGTOOL.trim(u.val()) == u.attr("def-v")) return c.showError(i, "请输入" + u.attr("def-v")), !1;
						s = {
							uname: m.val(),
							code: u.val(),
							from: 2,
							remember: r
						}, l = "/mlogin/loginbycode"
					} else {
						var d = i.find(".lo_mod_box"),
							m = d.find("input[name=uname]"),
							g = d.find("input[name=pass]").val();
						if (MGTOOL.trim(m.val()) == m.attr("def-v")) return c.showError(i, "请输入" + m.attr("def-v")), !1;
						if ("" == MGTOOL.trim(g)) return c.showError(i, "请输入登录密码"), !1;
						if (e(".imgcheck_code_img_div:visible").length && !n.CHECK.isImgcodeCheck(i)) return !1;
						s = {
							uname: m.val(),
							password: e.md5(g),
							check: e("#imgcheckvalue").val(),
							from: 2,
							remember: r
						}, l = "/mlogin/login"
					}
					var h = function(e) {
						if (1001 == e.status.code) MOGUPROFILE.userid = e.result.uid, t.success_close("登录成功！", 200), a.callback && a.callback(e.result.data);
						else {
							if (2 == e.result) {
								i.find(".mod_box").eq(o - 1).attr("data-isshow", "1");
								var s = '<div id="lg_chk" class="lg_chk"></div>',
									l = i.find(".lg_remember");
								n.CHECK.GetImgCheck(s, "#lg_chk", l, i)
							}
							c.showError(i, e.status.msg)
						}
					};
					c.ajaxPost(s, l, h)
				},
				showError: function(e, t) {
					t && e.find(".error_tip").html(t).css("visibility", "visible")
				},
				hideError: function(e) {
					"visible" == e.find(".error_tip").css("visibility") && e.find(".error_tip").css("visibility", "hidden")
				},
				turnLoginMod: function(e, t) {
					var i = e.find(".lg_form");
					1 == t ? (i.find(".mod_box").hide().eq(0).show(), i.removeClass("easy_buy")) : 2 == t && (i.find(".mod_box").hide().eq(1).show(), i.addClass("easy_buy")), 1 == i.find(".mod_box:visible").attr("data-isshow") ? i.find(".lg_chk").show() : i.find(".lg_chk").hide()
				},
				countDownStart: function(e, t) {
					var i = this;
					i.timer = "";
					var o = function(e, t) {
						i.timer && clearTimeout(i.timer), i.timer = setTimeout(function() {
							0 >= t ? e.html("重新发送").removeClass("downing") : (t--, e.html("重新发送(" + t + ")"), o(e, t))
						}, "1000")
					};
					o(e, t)
				}
			}, n.CHECK = {
				FixIe6Bug: function() {
					e.browser.msie && "6.0" == e.browser.version && document.execCommand("BackgroundImageCache", !1, !0)
				},
				checkCodeIsShow: function(e, t, i) {
					var o = function(t) {
						if (1001 == t.status.code)
							if (1 == t.result) e.find(".mod_box").eq(i - 1).attr("data-isshow", "0");
							else if (2 == t.result) {
							e.find(".mod_box").eq(i - 1).attr("data-isshow", "1");
							var o = '<div id="lg_chk" class="lg_chk"></div>',
								a = e.find(".lg_remember");
							n.CHECK.GetImgCheck(o, "#lg_chk", a, e)
						} else 3 == t.result && n.UI.showError(e, t.status.msg)
					};
					n.UI.ajaxPost({
						uname: t.val(),
						type: i
					}, "/mlogin/getvalidatelevel", o)
				},
				GetImgCheck: function(t, i, o, a) {
					return e(i).length > 0 ? (a.find(".lg_chk").show(), e("#imgcheck_code_change").trigger("click"), !1) : (o.before(t), void n.UI.ajaxPost("", "/pcaptcha/getview/nlogin", function(t) {
						if (1001 == t.status.code) {
							var o = t.result.captcha;
							setTimeout(function() {
								e(i).html(o).css("opacity", 0).animate({
									opacity: 1
								}, 1e3), e(".lg_chk").show(), MOGU.imgCaptchaInit()
							}, 0)
						} else e(i).remove()
					}))
				},
				RemoveImgCheck: function() {
					e("#lg_chk").remove()
				},
				isImgcodeCheck: function(t) {
					var i = !0;
					if (MOGU.imgCodeCheck()) {
						var o = [];
						e(".img_code_spin").each(function(t, i) {
							var a = e(i).val();
							o.push(a)
						}), e("#imgcheckvalue").val(o.join(","))
					} else n.UI.showError(t, "请先点击图片旋转到正确方向"), i = !1;
					return i
				}
			},
			function() {
				MOGU.Globe_Bind_Keybord_Submit("", e("#" + i + " .login_btn"), "not_need_focus"), n.CHECK.FixIe6Bug();
				var t = e("#lb_login");
				s(t), MOGU.Globe_Input_Text_Hide(t.find("input[type=text]"))
			}()
	}, MOGU.User_Other_login = function() {
		var t = e("#show_more_login");
		t.size() > 0 && e(".more_login").hover(function() {
			e(this).addClass("more_login_active");
			var i = e(this).offset().top + 25,
				o = e(this).offset().left - 90;
			t.css({
				top: i,
				left: o
			}).show()
		}, function() {
			var i = e(this),
				o = setTimeout(function() {
					t.hide()
				}, 1e3);
			t.hover(function() {
				clearTimeout(o)
			}, function() {
				i.removeClass("more_login_active"), t.hide()
			})
		})
	}, MOGU.Globe_Checkcode_Change = function() {
		0 != e("#checkcode_change").size() && e("#checkcode_change").click(function() {
			e.ajax({
				url: "/users/recaptcha",
				type: "POST",
				timeout: 6e4,
				data: "{}",
				dataType: "json",
				success: function(t) {
					if (null == t) alert(MGLANG.msgTimeout);
					else {
						var i = t.status.code,
							o = t.status.msg;
						if (1001 == i) {
							var a = t.result.data.captchaId,
								s = t.result.data.captchaSrc;
							e("#img_checkcode").attr("src", s), e("#captcha-id").val(a)
						} else alert(o)
					}
				},
				error: function(e, t) {
					"timeout" == t && alert(MGLANG.msgTimeout)
				}
			})
		})
	}, jQuery(document).ready(function() {
		MOGU.User_Other_login()
	})
}(jQuery);
define("pages/more/js/welcome-menu-aim", [], function() {
	! function(e) {
		function n(n) {
			var t = e(this),
				i = null,
				a = [],
				s = null,
				o = null,
				r = e.extend({
					rowSelector: "> li",
					submenuSelector: "*",
					submenuDirection: "right",
					tolerance: 75,
					enter: e.noop,
					exit: e.noop,
					activate: e.noop,
					deactivate: e.noop,
					exitMenu: e.noop
				}, n),
				l = 3,
				d = 300,
				c = function(e) {
					a.push({
						x: e.pageX,
						y: e.pageY
					}), a.length > l && a.shift()
				},
				m = function() {
					o && clearTimeout(o), r.exitMenu(this) && (i && r.deactivate(i), i = null)
				},
				u = function() {
					o && clearTimeout(o), r.enter(this), g(this)
				},
				p = function() {
					r.exit(this)
				},
				_ = function() {
					f(this)
				},
				f = function(e) {
					e != i && (i && r.deactivate(i), r.activate(e), i = e)
				},
				g = function(e) {
					var n = v();
					n ? o = setTimeout(function() {
						g(e)
					}, n) : f(e)
				},
				v = function() {
					function n(e, n) {
						return (n.y - e.y) / (n.x - e.x)
					}
					if (!i || !e(i).is(r.submenuSelector)) return 0;
					var o = t.offset(),
						l = {
							x: o.left,
							y: o.top - r.tolerance
						},
						c = {
							x: o.left + t.outerWidth(),
							y: l.y
						},
						m = {
							x: o.left,
							y: o.top + t.outerHeight() + r.tolerance
						},
						u = {
							x: o.left + t.outerWidth(),
							y: m.y
						},
						p = a[a.length - 1],
						_ = a[0];
					if (!p) return 0;
					if (_ || (_ = p), _.x < o.left || _.x > u.x || _.y < o.top || _.y > u.y) return 0;
					if (s && p.x == s.x && p.y == s.y) return 0;
					var f = c,
						g = u;
					"left" == r.submenuDirection ? (f = m, g = l) : "below" == r.submenuDirection ? (f = u, g = m) : "above" == r.submenuDirection && (f = l, g = c);
					var v = n(p, f),
						h = n(p, g),
						w = n(_, f),
						b = n(_, g);
					return w > v && h > b ? (s = p, d) : (s = null, 0)
				};
			t.mouseleave(m).find(r.rowSelector).mouseenter(u).mouseleave(p).click(_), e(document).mousemove(c)
		}
		e.fn.menuAim = function(e) {
			return this.each(function() {
				n.call(this, e)
			}), this
		}
	}(jQuery)
}), define("widgets/mgslide/mgslide-standard", [], function() {
	$.easing.jswing = $.easing.swing, $.extend($.easing, {
		def: "easeOutQuad",
		easeOutQuad: function(e, n, t, i, a) {
			return -i * (n /= a) * (n - 2) + t
		}
	});
	var e = document.createElement("div"),
		n = "animation" in e.style || "-webkit-animation" in e.style,
		t = navigator.userAgent,
		i = t.match(/(iPad).*OS\s([\d_]+)/),
		a = t.match(/(iPod)(.*OS\s([\d_]+))?/),
		s = !i && t.match(/(iPhone\sOS)\s([\d_]+)/),
		o = i || a || s,
		r = t.match(/(Android)\s+([\d.]+)/),
		l = o || r,
		d = ($.browser.msie && "6.0" == $.browser.version && !$.support.style, function(e) {
			this.isMouseOn = !1, this.isTurning = !1, this.showIndex = 0, this.banners = null, this.bannerNum = 0, this.opts = $.extend({}, this.defaults, e), this.autoTurnTimer = null, this.dotHoverTimer = null, this.isHoverTurn = !1, this.init()
		});
	return d.prototype = {
		defaults: {
			bannerBox: null,
			isLazyImage: !1,
			autoTime: !1,
			isTouchTurn: !0,
			turnMode: "normal",
			transDuration: 500,
			addTurnBtn: !1,
			addTurnDot: !1,
			callback: function() {}
		},
		init: function() {
			var e = this;
			e.banners = e.opts.bannerBox.find(".mslide_banner"), e.bannerNum = e.banners.length, e.loadingImage(0), e.bannerNum < 2 || (setTimeout(function() {
				e.loadingImage(1)
			}, 1e3), e.opts.autoTime && (o || e.opts.bannerBox.hover(function() {
				e.isMouseOn = !0
			}, function() {
				e.isMouseOn = !1, e.isHoverTurn && (e.isHoverTurn = !1, e.nextPage())
			}), e.opts.autoTime = e.opts.autoTime > 1e3 ? e.opts.autoTime : 1e3, e.resetAutoTurn()), e.opts.isTouchTurn && e.initTouchTurn(), "default" == e.opts.addTurnBtn && e.addDefaultBtn(), "default" == e.opts.addTurnDot ? e.addDefaultDot() : "animDot" == e.opts.addTurnDot && e.addAnimDot(), l ? e.opts.bannerBox.find(".msilde_toggle_btn").remove() : e.initToggleBtn())
		},
		goPage: function(e) {
			var n = this,
				t = n.opts.bannerBox.find(".mslide_banner_show"),
				i = t.index(),
				a = "next";
			i > e && (a = "prev"), e >= n.bannerNum && (e = 0), 0 > e && (e = n.bannerNum - 1);
			var s = n.banners.eq(e);
			if (!n.isTurning && !s.hasClass("mslide_banner_show")) {
				n.isTurning = !0, n.loadingImage(e);
				var r = n.opts.transDuration;
				if ("fade" == n.opts.turnMode) o ? s.attr("style", "z-index:2;display:block; -webkit-animation: fadeIn ease-in " + r + "ms;") : (s.css({
					"z-index": 2
				}), s.fadeIn(r, "easeOutQuad").css("display", "block")), setTimeout(function() {
					t.css({
						"z-index": 0,
						display: "none"
					}), s.css({
						"z-index": 1
					}), t.removeClass("mslide_banner_show"), s.addClass("mslide_banner_show"), n.isTurning = !1
				}, r + 10);
				else if ("slide" == n.opts.turnMode) {
					var l = n.opts.bannerBox.width();
					l = "prev" == a ? -l : l, s.css({
						left: l
					}), s.addClass("mslide_banner_show"), t.animate({
						left: -l
					}, r, "easeOutQuad"), s.animate({
						left: 0
					}, r, "easeOutQuad"), setTimeout(function() {
						t.removeClass("mslide_banner_show"), n.isTurning = !1
					}, r + 10)
				} else if ("slideFade" == n.opts.turnMode) {
					var l = n.opts.bannerBox.width() / 4;
					l = "prev" == a ? -l : l, s.css({
						"z-index": 2,
						left: l,
						opacity: 0,
						display: "block"
					}), t.animate({
						left: -l,
						opacity: 0
					}, r), s.animate({
						left: 0,
						opacity: 1
					}, r), setTimeout(function() {
						t.css({
							"z-index": 0
						}), s.css({
							"z-index": 1
						}), s.addClass("mslide_banner_show"), t.removeClass("mslide_banner_show"), n.isTurning = !1
					}, r + 10)
				} else t.removeClass("mslide_banner_show"), s.addClass("mslide_banner_show"), n.isTurning = !1;
				this.showIndex = e, n.opts.isLazyImage && setTimeout(function() {
					n.loadingImage(e + 1)
				}, 1e3), n.opts.callback && n.opts.callback(e);
				var d = n.opts.bannerBox.find(".dot_default");
				d.length > e && (d.removeClass("dot_show"), d.eq(e).addClass("dot_show")), n.opts.autoTime && n.resetAutoTurn()
			}
		},
		prevPage: function() {
			var e = this;
			e.goPage(e.showIndex - 1)
		},
		nextPage: function() {
			var e = this;
			e.goPage(e.showIndex + 1)
		},
		loadingImage: function(e) {
			var n = this;
			if (n.opts.isLazyImage) {
				e >= n.bannerNum && (e = 0), 0 > e && (e = n.bannerNum - 1);
				var t = n.banners.eq(e);
				if (!t.hasClass("J_img_load")) {
					t.addClass("J_img_load");
					var i = new Image;
					i.onload = function() {
						t.hasClass("mslide_banner_show") ? (t.html('<img class="fill_img mslide_banner_img" style="display:none;" src="' + i.src + '" alt=""/>'), t.find(".mslide_banner_img").fadeIn(400, "easeOutQuad").css("display", "block")) : t.html('<img class="fill_img mslide_banner_img" style="display:block;" src="' + i.src + '" alt=""/>')
					}, i.src = t.attr("img-url")
				}
			}
		},
		initToggleBtn: function() {
			var e = this,
				n = e.opts.bannerBox;
			n.find(".msilde_next_btn").length > 0 && n.on("click", ".msilde_next_btn", function(n) {
				n.preventDefault(), e.nextPage()
			}), n.find(".msilde_prev_btn").length > 0 && n.on("click", ".msilde_prev_btn", function(n) {
				n.preventDefault(), e.prevPage()
			}), n.find(".dot_default").length > 0 && !o && (n.find(".dot_default").hover(function() {
				var n = $(this);
				clearInterval(e.dotHoverTimer), n.hasClass("dot_show") || (e.dotHoverTimer = setInterval(function() {
					e.isTurning || (e.goPage(n.index()), clearInterval(e.dotHoverTimer))
				}, 200))
			}, function() {
				clearInterval(e.dotHoverTimer)
			}), n.on("click", ".dot_default", function(n) {
				n.preventDefault(), e.goPage($(this).index())
			}))
		},
		initTouchTurn: function() {
			var e = this,
				n = 0,
				t = 0,
				i = null,
				a = null,
				s = {},
				o = e.opts.bannerBox;
			o.on("touchstart", function(e) {
				i = e.originalEvent.touches[0], a && clearTimeout(a), s.x1 = i.pageX, s.y1 = i.pageY
			}), o.on("touchmove", function(e) {
				i = e.originalEvent.touches[0], s.x2 = i.pageX, s.y2 = i.pageY, n = Math.abs(s.x1 - s.x2), t = Math.abs(s.y1 - s.y2), n && 1 > t / n && e.preventDefault()
			}), o.on("touchend", function(i) {
				if (s.x2 && n > 80) {
					var o = s.x1 - s.x2;
					("slideFade" == e.opts.turnMode || "slide" == e.opts.turnMode) && (o = -o), a = setTimeout(function() {
						o > 0 ? e.prevPage() : e.nextPage(), s = {}
					}, 0)
				}
				n = t = 0
			}), o.on("touchcancel", function() {
				a && clearTimeout(a), a = null
			})
		},
		addDefaultBtn: function() {
			var e = this,
				n = '<a class="msilde_toggle_btn msilde_prev_btn" href="javascript:;" title="上一张"></a><a class="msilde_toggle_btn msilde_next_btn" href="javascript:;" title="下一张"></a>';
			e.opts.bannerBox.append(n)
		},
		addDefaultDot: function() {
			for (var e = this, n = "", t = 1; t <= e.bannerNum; t++) {
				var i = 1 == t ? "dot_show" : "";
				n += '<a href="javascript:;" class="dot_default ' + i + ' fl"></a>'
			}
			var a = '<div class="msilde_dot_box clearfix" style="margin-left:-' + 8 * e.bannerNum + 'px">' + n + "</div>";
			e.opts.bannerBox.append(a)
		},
		addAnimDot: function() {
			var e = this,
				t = "",
				i = '<span class="dot_show_img" ></span>',
				a = e.opts.autoTime || 5e3;
			n && (t = ["-webkit-animation: rotate " + a + "ms cubic-bezier(0.6, 0, 0.6, 1) 1;", "-moz-animation: rotate " + a + "ms cubic-bezier(0.6, 0, 0.6, 1) 1;", "-o-animation: rotate " + a + "ms cubic-bezier(0.6, 0, 0.6, 1) 1;", "animation: rotate " + a + "ms cubic-bezier(0.6, 0, 0.6, 1) 1;", "background: none;"].join(""), i = '<img class="dot_show_img" style="' + t + '" src="http://s8.mogucdn.com/pic/140829/o61vu_ieydmm3bmi2geodgmiytambqgiyde_40x40.png">');
			for (var s = "", o = 1; o <= e.bannerNum; o++) {
				var r = 1 == o ? "dot_show" : "";
				s += '<a href="javascript:;" class="dot_default ' + r + ' fl">' + i + "</a>"
			}
			var l = $('<div class="msilde_dot_box anim_msilde_dot_box clearfix" style="margin:0;">' + s + "</div>");
			e.opts.bannerBox.append(l), l.css({
				"margin-left": -parseInt(l.outerWidth(!0)) / 2 + "px",
				left: "50%"
			})
		},
		resetAutoTurn: function() {
			var e = this,
				n = e.opts.autoTime;
			clearInterval(e.autoTurnTimer), e.autoTurnTimer = setInterval(function() {
				return e.isMouseOn ? void(e.isHoverTurn = !0) : void e.goPage(e.showIndex + 1)
			}, n)
		}
	}, d
}), define("pages/more/js/welcome-slide-multi", [], function() {
	! function(e, n, t) {
		function i(n, t) {
			function i(e) {
				if (g) return !1;
				g = !0, e > T && I > e ? e = T : e >= I && (e = 0), 0 > e && e > -x ? e = 0 : -x >= e && (e = T);
				var n = e,
					t = -(y * n);
				d.stop().animate({
					left: t
				}, u, function() {
					_ = n, g = !1, c.call(this, n)
				})
			}

			function s(e) {
				if (g) return !1;
				g = !0;
				var n = d.find("li");
				if (2 == e) {
					var t = n.eq(0);
					t.stop().animate({
						"margin-left": -y
					}, u, function() {
						g = !1, t.css("margin-left", 0), t.appendTo(d)
					})
				} else {
					var i = n.filter(":last-child");
					i.css("margin-left", -y).prependTo(d), i.stop().animate({
						"margin-left": 0
					}, u, function() {
						g = !1
					})
				}
			}

			function o() {
				return v ? (clearInterval(f), void(f = setInterval(function() {
					if (g) return !1;
					_ += x;
					var e = 2;
					w ? s(e) : i(_)
				}, m))) : !1
			}
			var r = e.extend(!0, {}, a, t),
				l = e(n);
			if ("1" != l.data("init")) {
				l.data("init", "1");
				var d = l.find("ul");
				$iterms = d.children("li"), $arrowCtrls = l.find(".mt_slider_ctrl"), $arrowLeft = $arrowCtrls.filter(".prev").data("arrow", "prev"), $arrowRight = $arrowCtrls.filter(".next").data("arrow", "next");
				var c = r.afterSlide,
					m = r.switchTime,
					u = r.animateTime,
					p = $iterms.size(),
					_ = 0,
					f = 0,
					g = !1,
					v = r.autoSlide,
					h = r.showArrow,
					w = r.loopSlide,
					b = r.viewSize,
					x = r.slideSize,
					y = parseInt($iterms.eq(0).outerWidth(!0)) || 0;
				x = x > b ? b : x, u = u > m ? m : u;
				var T = p - b || 0,
					I = p - 1;
				d.css({
					"min-width": b * y
				}), h && $arrowCtrls.each(function() {
					e(this).click(function(n) {
						if (g) return !1;
						var t = e(this),
							a = t.data(),
							o = null;
						"prev" == a.arrow ? (_ -= x, o = 1) : "next" == a.arrow && (_ += x, o = 2), w ? s(o) : i(_), n.stopPropagation()
					})
				}), l.off(".mtslide").on("mouseenter.mtslide", function(e) {
					clearInterval(f)
				}).on("mouseleave.mtslide", function() {
					o()
				}), o()
			}
		}
		var a = {
			switchTime: 3e3,
			showArrow: !0,
			animateTime: 720,
			autoSlide: !1,
			afterSlide: e.noop,
			loopSlide: !0,
			viewSize: 2,
			slideSize: 1
		};
		e.fn.extend({
			slideMulti: function(n) {
				var t = e(this);
				return t.each(function() {
					i(e(this), n)
				}), t
			}
		})
	}(jQuery, window)
}), define("pages/more/js/welcome-supportwebp", [], function() {
	var e, n = function(n) {
			var t = MoGu.util.getCookie("mgj_issuppor_webp");
			if ("" !== t) return "true" === t ? e = !0 : "false" === t && (e = !1), void n();
			var i = new Image;
			i.onload = function() {
				e = !0, MoGu.util.setCookie("mgj_issuppor_webp", "true", {
					express: 30
				}), n()
			}, i.onerror = function() {
				e = !1, MoGu.util.setCookie("mgj_issuppor_webp", "false", {
					express: 30
				}), n()
			}, i.src = ""
		},
		t = function() {
			return "undefined" == typeof e && window.console && window.console.log("浏览器支持webp 检测出错，原因是：使用前未调用init 初始化函数"), !!e
		},
		i = function(e) {
			return e
		};
	return {
		init: n,
		check: t,
		get: i
	}
}), define("pages/more/js/welcome-primary", ["./welcome-slide-multi", "widgets/mgslide/mgslide-standard", "./welcome-supportwebp"], function(e, n, t) {
	$(function() {
		function e(e) {
			return (9 >= e ? "0" : "") + e
		}

		function i(n) {
			return {
				hh: e(parseInt(n / 3600)),
				mm: e(parseInt(n % 3600 / 60)),
				ss: e(n % 60)
			}
		}

		function a() {
			window._curLeftTime = parseInt(p.data("lefttime")) || 0, v = i(_curLeftTime), _.text(v.hh), f.text(v.mm), g.text(v.ss), window._changeLeftTime = window.setInterval(function() {
				--_curLeftTime > 0 ? (v = i(_curLeftTime), _.text(v.hh), f.text(v.mm), g.text(v.ss)) : (_.text("00"), f.text("00"), g.text("00"), window.clearInterval(window._changeLeftTime), window._changeLeftTime = null)
			}, 1e3)
		}

		function s() {
			$(".need_webp_zip").each(function() {
				var e = $(this),
					n = e.data("src");
				/^.*?\.(webp)$/.test(n) || (e.is("img") ? (e.attr("src", window._tmp._getWebpImgByUrl(n)), e.bind("load", function() {
					$(this).removeClass("need_webp_zip")
				})) : (e.css({
					"background-image": "url(" + window._tmp._getWebpImgByUrl(n) + ")"
				}), e.removeClass("need_webp_zip")))
			})
		}

		function o(e) {
			r(w.eq(e), e)
		}

		function r(e, n) {
			var t = $(window).scrollTop();
			if (t > T && I > t) {
				var i = log_stat_url_tmp + "&refer=" + log_stat_refer + "&rerefer=" + encodeURIComponent(e.attr("href") + "&actionFrom=index" + n) + "&anchor=" + log_stat_anchor + "&cpsinfo=" + log_stat_cpsinfo;
				b.src = i
			}
		}! function(e) {
			function n(n) {
				var t = e(n),
					a = e("div.nav_more", t);
				t.index();
				a.css({
					top: -(t.offset().top - i.offset().top) - 1
				}), t.addClass("primary_nav_li_current").siblings().removeClass("primary_nav_li_current")
			}

			function t(n) {
				e(n).removeClass("primary_nav_li_current")
			}
			var i = e("#j_primary_nav_list");
			i.menuAim({
				activate: n,
				deactivate: t,
				exitMenu: function() {
					return !0
				}
			})
		}(jQuery);
		var l = $("#special_col1"),
			d = l.find("a").eq(0),
			c = d.find(".price-val"),
			m = d.find(".price-name"),
			u = d.find("img").eq(0);
		u.bind("load", function() {
			d.find(":hidden").show()
		});
		var p = $("#l-time-ctrl"),
			_ = p.find(".timer-hh"),
			f = p.find(".timer-mm"),
			g = p.find(".timer-ss"),
			v = null;
		$.ajax({
			url: "/more/index_json",
			type: "POST",
			data: this.data,
			dataType: "json"
		}).done(function(e) {
			if (1001 === e.status.code) {
				var n = e.result,
					t = n.rush || !1,
					i = n.banner_cpm || !1;
				if (t && (d.attr("href", t.link), u.attr("alt", t.title || "限时快抢").data("src", t.img), p.data("lefttime", t.time), c.text(t.itemPrice || ""), m.text(t.itemName || ""), a(), s()), i) {
					var o = $("#pc_banner_slider").find(".mslide_banner");
					if (o.length >= 5) {
						var r = i.link || "",
							l = i.title || "",
							_ = i.img || "";
						"" == r && "" == _ || (o.eq(4).attr({
							href: r,
							"img-url": _
						}).find("img").attr({
							"data-src": _,
							alt: l
						}).data("src", _).addClass("need_webp_zip banner_cpm"), s())
					}
				}
			}
		}), window._isNeededWebp = window._isNeededWebp || !1, window._isNeededWebp ? window._tmp = $.extend(!0, {}, {
			_getWebpImgByUrl: !1
		}, window._tmp) : window._tmp = $.extend(!0, {}, {
			_getWebpImgByUrl: function(e) {
				return e
			}
		}, window._tmp), window._tmp._getWebpImgByUrl ? s() : t.init(function() {
			window._tmp._getWebpImgByUrl = function(e) {
				return e = e || "", /^.*?\.(webp)$/.test(e) ? e : t.get(e)
			}, s()
		});
		var h = $("#pc_banner_slider"),
			w = h.find(".mslide_banner"),
			b = new Image,
			x = h[0].offsetHeight,
			y = h.offset().top,
			T = y + x / 4 - document.documentElement.clientHeight,
			I = y + x / 4 * 3;
		r(w.eq(0), 0);
		new n({
			bannerBox: h,
			autoTime: 5e3,
			isLazyImage: !0,
			callback: o,
			turnMode: "slideFade",
			addTurnBtn: "default",
			addTurnDot: "animDot"
		})
	})
}), define("text", {
	load: function(e) {
		throw new Error("Dynamic load not allowed: " + e)
	}
}), define("text!pages/more/tpl/floor.tpl", [], function() {
	return '{{?it.list && it.list.length > 0}}\n\n    {{~it.list:ls_iterm:ls_index}}\n\n        {{? \'2\'==ls_iterm.type}}\n            <li class="wrap ntpl_2">\n                <div class="h_title">\n                    <div class="ht_bg_con" onselect="return false;" >\n                        <div class="hbg_l"><div class="hbg_r"><div class="hbg_m"></div></div></div>\n                    </div>\n                    <h3 class="ht_t_con lazy-floor-title" data-src="{{= _tmp._getWebpImgByUrl(ls_iterm.header.img) }}">{{=ls_iterm.header.title}}</h3>\n                    <div class="ht_bg_con" onselect="return false;" >\n                        <div class="hbg_l"><div class="hbg_r"><div class="hbg_m"></div></div></div>\n                    </div>\n                </div>\n                <!-- 模块标题 -->\n                <div class="nptl_con">\n                    <div class="nptl_col1">\n                        {{~ls_iterm.p1:p1_iterm:p1_index}}\n                            {{? p1_index<1}}\n                            <a rel="nofollow" target="_blank" class="ad_up" href="{{=p1_iterm.link}}">\n                                <img data-src="{{= _tmp._getWebpImgByUrl(p1_iterm.img) }}" class="lazy-load" src="" alt="">\n                            </a>\n                            {{? }}\n                        {{~}}\n                        {{~ls_iterm.p2:p2_iterm:p2_index}}\n                            {{? p2_index<8}}\n                            <a rel="nofollow"  target="_blank" href="{{=p2_iterm.link}}" class="ad_btm_item">\n                                <img data-src="{{= _tmp._getWebpImgByUrl(p2_iterm.img) }}" class="lazy-load" src="" alt="">\n                                <span class="hover_cover"></span>\n                            </a>\n                            {{?}}\n                        {{~}}\n                    </div>\n                    <div class="nptl_col2">\n                        {{~ls_iterm.p3:p3_iterm:p3_index}}\n                            {{? p3_index<1}}\n                            <div class="col_long_pic">\n                                <a href="{{=p3_iterm.link}}" target="_blank" rel="nofollow">\n                                    <img class="lazy-load" data-src="{{= _tmp._getWebpImgByUrl(p3_iterm.img) }}" src="" alt="">\n                                </a>\n                            </div>\n                            {{? }}\n                        {{~}}\n                        <div class="col_goods">\n                            <div class="goods_its">\n                                {{~ls_iterm.p4:p4_iterm:p4_index}}\n                                    {{? p4_index<6}}\n                                    <a href="{{=p4_iterm.link}}" class="goods_item {{? p4_index>2 && p4_index<6 }}pos_btm{{?}}" target="_blank" rel="nofollow">\n                                        <img class="lazy-load" data-src="{{=  _tmp._getWebpImgByUrl(p4_iterm.img) }}" src="" alt="">\n                                        <span class="goods_name">\n                                            <span class="gd_name_ch">{{=p4_iterm.title}}</span>\n                                        </span>\n                                    </a>\n                                    {{?}}\n                                {{~}}\n                            </div>\n                        </div>\n\n                    </div>\n                </div>\n            </li>\n\n        {{??}}\n            <li class="wrap ntpl_1">\n                <div class="h_title">\n                    <div class="ht_bg_con" onselect="return false;" >\n                        <div class="hbg_l"><div class="hbg_r"><div class="hbg_m"></div></div></div>\n                    </div>\n                    <h3 class="ht_t_con lazy-floor-title" data-src="{{= _tmp._getWebpImgByUrl(ls_iterm.header.img) }}">{{=ls_iterm.header.title}}</h3>\n                    <div class="ht_bg_con" onselect="return false;" >\n                        <div class="hbg_l"><div class="hbg_r"><div class="hbg_m"></div></div></div>\n                    </div>\n                </div>\n                <!-- 模块标题 -->\n                <div class="nptl_con">\n                    <div class="nptl_col1">\n                        <div class="covered_con">\n                        {{~ls_iterm.p1:p1_iterm:p1_index}}\n                            {{? p1_index<2}}\n                            <div class="covered_pic {{? 0==p1_index}} first_child{{?}}">\n                                <a rel="nofollow" target="_blank" href="{{=p1_iterm.link}}">\n                                    <img data-src="{{= _tmp._getWebpImgByUrl(p1_iterm.img) }}" class="lazy-load" src="" alt="">\n                                    <span class="covered"></span>\n                                </a>\n                            </div>\n                            {{?}}\n                        {{~}}\n                        </div>\n                        <!-- 顶部图片资源广告位 -->\n                        <ul class="btm_txt_con clearfix">\n                            {{~ls_iterm.p2:p2_iterm:p2_index}}\n                                {{? p2_index<9}}\n                                <li><a rel="nofollow" target="_blank" href="{{=p2_iterm.link}}">{{=p2_iterm.title}}</a></li>\n                                {{?}}\n                            {{~}}\n                        </ul>\n                        <!-- 底部文字超链接 -->\n                    </div>\n                    <!-- 第一列 -->\n                    <div class="nptl_col2">\n                        <div class="nptl_c2_row1">\n                            <div class="nptl2_mt_slider">\n                                <div class="mt_slider_view_con">\n                                    <ul>\n                                        {{~ls_iterm.p3:p3_iterm:p3_index}}\n                                            {{? p3_index<3}}\n                                            <li>\n                                                <a rel="nofollow"  target="_blank" href="{{=p3_iterm.link}}">\n                                                    <img data-src="{{= _tmp._getWebpImgByUrl(p3_iterm.img)}}" class="lazy-load" src="" alt="">\n                                                </a>\n                                            </li>\n                                            {{?}}\n                                        {{~}}\n                                    </ul>\n                                </div>\n                                <a rel="nofollow" href="javascript:void(0);" class="mt_slider_ctrl prev"><i></i></a>\n                                <a rel="nofollow" href="javascript:void(0);" class="mt_slider_ctrl next"><i></i></a>\n                            </div>\n                        </div>\n                        <div class="nptl_c2_row2">\n                            <ul>\n                                {{~ls_iterm.p4:p4_iterm:p4_index}}\n                                    {{? p4_index<3}}\n                                    <li class="{{? p4_index==0}}first_child{{?}}">\n                                        <a rel="nofollow" target="_blank" href="{{=p4_iterm.link}}">\n                                            <img class="lazy-load" data-src="{{= _tmp._getWebpImgByUrl(p4_iterm.img) }}" src="" alt="">\n                                            <span class="r_desc">\n                                                <span>{{=p4_iterm.title}}</span>\n                                                <span class="t_btm">{{=p4_iterm.desc}}</span>\n                                            </span>\n                                        </a>\n                                    </li>\n                                    {{?}}\n                                {{~}}\n                            </ul>\n                        </div>\n                    </div>\n                </div>\n            </li>\n        {{?}}\n\n    {{~}}\n\n{{??}}\n    <p style="text-align:center;">没有数据</p>\n{{?}}\n\n\n\n'
}), define("pages/more/js/welcome-load-floor", ["./welcome-supportwebp", "text!../tpl/floor.tpl", "./welcome-slide-multi"], function(e, n, t) {
	function i(e, n, t) {
		var i = 0;
		return t = t || this,
			function() {
				var a = +new Date;
				a - i > n && (e.apply(t, arguments), i = a)
			}
	}
	var a = 200,
		s = $(window),
		o = s.height(),
		r = {
			$view: $("#floor_list"),
			$loading: $("#floor_loading"),
			URL: null,
			data: {
				_ajax: 1
			},
			isLoading: !1,
			isFirst: !0,
			tpl: MoGu.ui.getdoT().template(n),
			isScreen960: $("body").hasClass("media_screen_960") || !1,
			init: function() {
				this.initParam(), this.initEvent(), this.loadData()
			},
			initParam: function() {
				this.URL = "more/load"
			},
			initEvent: function() {
				var e = this;
				s.on("scroll.list", function() {
					var n = s.scrollTop();
					if (!e.isLoading)
						if (0 == e.$view.children().length) e.$view.offset().top - o < n && e.loadData();
						else {
							var t = e.$view.children().last();
							t.offset().top - (o - 800) < n && e.loadData()
						}
				}), s.on("scroll.image", i(e.loadImages, 200, e))
			},
			loadData: function() {
				var e = this;
				e.isLoading || (e.isLoading = !0, $.getJSON(e.URL, this.data).done(function(n) {
					if (1001 === n.status.code) {
						var t = n.result;
						e.render(t)
					}
				}).always(function() {
					e.isLoading = !1
				}))
			},
			loadImages: function() {
				var e = s.scrollTop() - a,
					n = e + s.height() + 2 * a,
					t = this.$view.find(".lazy-load");
				t.each(function(t, i) {
					var a = $(i),
						s = a.offset().top,
						o = s + a.height(),
						r = a.data("src") || "";
					o > e && n > s && (a.removeClass("lazy-load"), a.bind("load", function() {
						$(this).addClass("fade-in")
					}), a.attr("src", r))
				})
			},
			initMultiSlide: function(e) {
				var n = e.find(".nptl2_mt_slider");
				n.each(function() {
					$(this).slideMulti()
				})
			},
			render: function(e) {
				var n = this,
					t = $(n.tpl({
						list: e.list,
						isFirst: this.isFirst
					}));
				n.$view.append(t), n.loadImages(), n.isScreen960 && n.initMultiSlide(t), t.find(".lazy-floor-title").each(function() {
					var e = $(this),
						n = e.data("src") || "";
					if ("" != n) {
						var t = $("<img style='display:none;' alt='' src='" + n + "'/>").appendTo(e);
						t.bind("load", function() {
							var e = $(this),
								t = e.parent(".lazy-floor-title");
							t.removeClass("lazy-floor-title").css({
								"background-image": "url('" + n + "')"
							}), t.attr("org-text", t.text()), e.remove()
						})
					}
				}), this.isFirst = !1, this.data.mbook = e.mbook, e.isEnd && ($(window).off("scroll.list"), this.$loading.hide())
			}
		};
	window._isNeededWebp = window._isNeededWebp || !1, window._isNeededWebp ? window._tmp = $.extend(!0, {}, {
		_getWebpImgByUrl: !1
	}, window._tmp) : window._tmp = $.extend(!0, {}, {
		_getWebpImgByUrl: function(e) {
			return e
		}
	}, window._tmp), window._tmp._getWebpImgByUrl ? r.init() : e.init(function() {
		window._tmp._getWebpImgByUrl = function(n) {
			return n = n || "", /^.*?\.(webp)$/.test(n) ? n : e.get(n)
		}, r.init()
	})
}), require(["pages/more/js/welcome-menu-aim", "widgets/mgslide/mgslide-standard", "pages/more/js/welcome-slide-multi", "pages/more/js/welcome-supportwebp", "pages/more/js/welcome-primary", "pages/more/js/welcome-load-floor"], function() {});